package com.caiden_micheal.org.domain;

import com.caiden_micheal.base.dto.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class Org extends BaseDomain {
    private Long id;
    private String orgName;
    private Long parentOrgId;
    private Integer userCount;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date creationDate;
    private Integer disabled;
    private String parentOrgName;
    private List<Org> child;
}
